﻿{layout:default} {class:Shop.Supplier.Config.OnLinePay}
<lbhead>
    <title><%=Tag("在线支付")%>-<%=site.title%></title>
</lbhead>
<lbpath>
    <div class="tools">
    <ul>
        <li class="name"><span id="navIgation"><%=Tag("当前位置")%>：<a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a> > <%=Tag("在线支付")%></span></li>
    </ul>
    </div>
</lbpath>
<lbbody>
    <table id="list" class="datalist">
        <tr class="title">
           
            <th style="width: 200px">
                <%=Tag("名称")%>
            </th>
            <th style="width: 100px">
                <%=Tag("货币")%>
            </th>
            
            <th style="width: 80px">
                <%=Tag("启用")%>
            </th>
            <th style="width: 80px">
                <%=Tag("启用类型")%>
            </th>
            <th style="width: 80px">
                <%=Tag("排序")%>
            </th>
            <th>
                <%=Tag("操作")%>
            </th>
        </tr>
        <%foreach (Shop.Model.Lebi_OnlinePay model in models)
          {
              Shop.Model.Lebi_OnlinePay son = Getpay(model.id);
              %>
        <tr class="list" ondblclick="EditObj(<%=model.id %>);" >
            
            <td>
                <%=Shop.Bussiness.Language.Content(model.Name, CurrentLanguage.Code)%>
            </td>
            <td><%=model.Currency_Name%></td>
            
            <td>
                <%=son.IsUsed == 1 ? "Yes" : "No"%>
            </td>
            <td>
                <%=model.showtype %>
            </td>
            <td>
                <%=son.Sort%>
            </td>
            <td>
                <a href="javascript:void(0)" onclick="EditObj(<%=model.id %>);"><%=Tag("编辑")%></a>
            </td>
        </tr>
        <%} %>
    </table>
    <script type="text/javascript">
        function EditObj(id) {
            var title_ = "<%=Tag("编辑在线支付")%>";
            if (id == 0)
                var title_ = "<%=Tag("添加在线支付")%>";
            var url_ = "onlinepay_edit_window.aspx?id=" + id;
            var width_ = 500;
            var height_ = 'auto';
            var modal_ = true;
            EditWindow(title_, url_, width_, height_, modal_);
        }
    </script>
</lbbody>
<lbbottom>
<div class="bottom" id="body_bottom">
    <%=PageString%>
</div>
</lbbottom>